From: Marco Trevisan (TreviƱo) Date: Thu, 3 Oct 2024 15:00:20 +0000 (+0200) Subject: extensionSystem: Catch and log session update errors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~233 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=368a685717bb5ae0f7b07e5ff9a80edf7b3a9fa7;p=gnome-shell.git extensionSystem: Catch and log session update errors If sessionUpdated() fails we get a js failure but not information about where the actual problem was, so catch for error properly. Part-of: --- diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index bc804377e..9b5b944b6 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -43,7 +43,7 @@ export class ExtensionManager extends Signals.EventEmitter { () => this._reloadExtensionStylesheets()); Main.sessionMode.connect('updated', () => { - this._sessionUpdated(); + this._sessionUpdated().catch(logError); }); } @@ -73,7 +73,7 @@ export class ExtensionManager extends Signals.EventEmitter { this._installExtensionUpdates(); this._sessionUpdated().then(() => { ExtensionDownloader.checkForUpdates(); - }); + }).catch(logError); GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, UPDATE_CHECK_TIMEOUT, () => { ExtensionDownloader.checkForUpdates();